package com.ruoyi.project.lely.bean.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import org.hibernate.validator.constraints.Length;

/**
 * 系统配置
 *
 * @author luoyong
 */
@Data
@ApiModel("系统配置 入参DTO")
public class LySystemDTO {

    @ApiModelProperty("ID")
    private Long id;

    @Length(max = 255, message = "系统配置名长度不能超过255位")
    @NotEmpty
    @ApiModelProperty("系统配置名")
    private String keyName;

    @Length(max = 255, message = "系统配置值长度不能超过255位")
    @NotEmpty
    @ApiModelProperty("系统配置值")
    private String keyValue;

}
